const openws = function (wss) {
  let users = {}//链接用户
  wss.on('connection', (ws, req) => {
    let m = req.url.split('=')[1];
    users[m] = ws;
    ws.on('message', data => {
      let getdata = JSON.parse(data);
      //type=0,同步消息
      //type=1,好友请求
      ws.send('111');
      //
    });
  })
}
module.exports = openws;
